package graduation.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="user")
public class User {
	private String id;
	private String name;//姓名
	private String password;//密码
	private String email;//邮箱
	private String gender;//性别
	private String birth;//出生年月
	private String phone;//手机号码
	private String QQ;//qq
	private String wechat;//微信
	private String address;//地址
	private String introduction;//简介
	private String hiredate;//入职时间
	private String headphoto;//头像
	
	@Id
	@Column(name = "id", nullable = false, unique = true)
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(nullable = false)
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	@Column(nullable = false)
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	
	@Column(nullable = false,unique = true)
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getQQ() {
		return QQ;
	}
	public void setQQ(String qQ) {
		QQ = qQ;
	}
	public String getWechat() {
		return wechat;
	}
	public void setWechat(String wechat) {
		this.wechat = wechat;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getIntroduction() {
		return introduction;
	}
	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public String getHeadphoto() {
		return headphoto;
	}
	public void setHeadphoto(String headphoto) {
		this.headphoto = headphoto;
	}

	public String getBirth() {
		return birth;
	}
	public void setBirth(String birth) {
		this.birth = birth;
	}
	public String getHiredate() {
		return hiredate;
	}
	public void setHiredate(String hiredate) {
		this.hiredate = hiredate;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", password=" + password + ", email=" + email + ", gender="
				+ gender + ", birth=" + birth + ", phone=" + phone + ", QQ=" + QQ + ", wechat=" + wechat + ", address="
				+ address + ", introduction=" + introduction + ", hiredate=" + hiredate + ", headphoto=" + headphoto
				+ "]";
	}
	
	
	
	
	
	
//	private String u_id;
//	private String u_name;
//	private String u_phone;
//	private int u_orderState=0;
//	
//	
//
//	@Id
//	@Column(name = "u_id", nullable = false, unique = true,length = 32)
//	public String getU_id() {
//		return u_id;
//	}
//	
//	public void setU_id(String u_id) {
//		this.u_id = u_id;
//	}
//	@Column(name = "u_name", nullable = true, length = 32)
//	public String getU_name() {
//		return u_name;
//	}
//	public void setU_name(String u_name) {
//		this.u_name = u_name;
//	}
//	@Column(name = "u_phone", nullable = true, length = 32)
//	public String getU_phone() {
//		return u_phone;
//	}
//	public void setU_phone(String u_phone) {
//		this.u_phone = u_phone;
//	}
//	@Column(name = "u_orderState", nullable = false, length = 1)
//	public int getU_orderState() {
//		return u_orderState;
//	}
//	public void setU_orderState(int u_orderState) {
//		this.u_orderState = u_orderState;
//	}
}